Skip to content

Throw specific exceptions with common parent class#27

Merged
matthi4s merged 1 commit intoaternosorg:masterfrom
JulianVennen:exceptions
Sep 22, 2025
Merged

Throw specific exceptions with common parent class#27
matthi4s merged 1 commit intoaternosorg:masterfrom
JulianVennen:exceptions

Conversation

@JulianVennen
Copy link
Member

This PR replaces the @throws \Exception phpdoc tags with individual exception classes that extend ModelException.

ModelException is also a RuntimeException because handling these exceptions should not be expected, and IDEs won't complain when you don't handle them explicitly.

@matthi4s matthi4s merged commit db931dc into aternosorg:master Sep 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants